package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageResult;
import com.woniu.pojo.Patrol;
import com.woniu.vo.*;

import java.text.ParseException;
import java.util.List;

public interface IPatrolServices extends IService<Patrol> {

    /**
     * 分页条件查
     * */
    PageResult searchByPage(Integer currentPage, Integer pageSize, PatrolSearchVo patrolSearchVo);

    Boolean removeByPatrolId(Long id);

    Boolean add(PatrolAddVo patrolAddVo);

    PatrolAddVo searchById(Long id);

    Boolean modify(PatrolAddVo patrolAddVo);

    Boolean stopPatrol(Long id);

    Boolean usePatrol(Long id);

    List searchPatrolById(Long id);

    List searchOrderById(Long id);

    PageResult searchOrderListById(Long id, Integer currentPage, Integer pageSize, OrderPatrolSearchVo orderPatrolSearchVo);

    PageResult searchCheckList(Long id, Integer currentPage, Integer pageSize) throws ParseException;

    OrderDetailResVo searchOrderDetail(Long id);

    List searchChargeRuleByRoadId(Long id);

    Patrol login(PatrolLoginVo loginVo);
}
